/*
 *  $Id: ColdwingAngel.cs 1051 2010-05-18 22:10:41Z thenn.erannor $
 *	This file is a part of Ragima CCG.
 *	(C) 2008-2009 Ragima development group.
 *
 *	Licensed under the terms of the GNU GPL License version 2.
 *
 */

namespace Ragima.Cards001.Light.Creatures {
    public class ColdwingAngel: CreatureCard {
        public ColdwingAngel(): base("001_l_c_coldwing_angel") {
            Level = CompleteLevel.ReadyForTest;
            Element = ElementType.Light;
            Value = 100;
            SetRace<Races.Angel>();
            Damage = 2;
            Health = 4;
            AddManaCost(ElementType.Light, 3);
        }
        public override void CollectNaturalAffects(ICollector<Affect> affects) {
            affects.Add(new Affects.OnHit(DoHit, AffectSummaryType.Local));
        }

        private static void DoHit(Creature hitter, AbstractObject target, int damage) {
            Creature cr = target as Creature;
            if (cr != null && damage > 0) {
                // TODO: Возможно, нужны сброс атаки/защиты
                cr.State = CreatureState.Tapped;
            }
        }
    }
}
